package com.zzu.model.model;

import com.zzu.model.bean.DLS;
import com.zzu.model.bean.Delivery;
import com.zzu.model.bean.PackageItem;
import com.zzu.presenter.PackageQueryListener;

import java.util.List;

/**
 * @description:
 * @author: bytedance
 * @date: 2021-05-08 14:40
 * 包裹相关业务逻辑接口
 */
public interface PackageModel {


    //通过区/县名返回地区代码，然后获得该地区需要揽收的包裹
    void getDLSTask(String twn,PackageQueryListener<List<DLS>> packageQueryListener);

    //通过派送人id查询派送任务列表
    void getDeliveryTaskByHandler(String handler,PackageQueryListener<List<Delivery>> packageQueryListener);

    //通过运单号查询包裹信息
    void getPackageById(String id, PackageQueryListener<PackageItem> packageQueryListener);

}
